package com.msb.common.constant;

/**
 * 订单类常量
 */
public class OrderConstant {

    public static final String ORDER_TOKEN_PERFIX = "order:token:";

    public static final String ROCKET_SECKILL_ORDER_TOPIC = "seckillOrderTopic";

    public static final String ROCKETMQ_ORDER_TOPIC = "ordertopic";

    public enum OrderStatusEnum{
        FOR_THE_PAYMENT(0,"待付款"),
        TO_SEND_GOODS(1,"待发货"),
        HAS_BEEN_SHIPPED(2,"已发货"),
        HAS_BEEN_COMPLETED(3,"已完成"),
        CLOSE(4,"已关闭"),
        INVAILD_ORDERS(5,"无效订单")
        ;

        OrderStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        private int code;

        private String msg;

    }

}
